//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

`define SLL 6'b000000
`define SRL 6'b000010
`define SRA 6'b000011
`define RTYPE 6'b000000

module shift_ctr(opcodes,funct,control);

	input [5:0]opcodes,funct;
	output [1:0]control;
	reg [1:0]control;

always @(opcodes or funct) begin
	if(opcodes==`RTYPE) begin
		case(funct)
		  `SLL: control=0;
		  `SRL: control=1;
		  `SRA: control=2;
		endcase
	end
end
endmodule